import React, { Component } from 'react'

import store from './store'

class App extends Component {
  render() {
    return (
      <div>
        {store.getState().count}
        <button onClick={() => store.dispatch({type: 'add'})}>+</button>
      </div>
    );
  }
}

export default App;